package com.yonyou.cyxdms.basedata.service.dto.vehiclemodel;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.*;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 车型Page表格 - 查询DTO
 *
 * @author Tansj
 * @since 18:00 2019-11-15
 */
@ApiModel(value = "ModelQueryDTO", description = "车型Page表格 - 查询DTO")
public class ModelQueryDTO extends DMSBaseDTO implements Serializable {

    @ApiModelProperty(value = "品牌Id（品牌名称下拉框传递品牌Id）")
    private Long brandId;

    @ApiModelProperty(value = "车系Id（车系名称下拉框传递车系Id）")
    private Long seriesId;

    @ApiModelProperty(value = "车型代码（模糊查询）")
    private String modelCode;

    @ApiModelProperty(value = "车型名称（模糊查询）")
    private String modelName;

    @ApiModelProperty(value = "数据来源")
    private Integer dataSources;

    @ApiModelProperty(value = "是否有效")
    private Integer isValid;

    @ApiModelProperty(value = "是否整车销售-10041001只查厂端")
    private Integer isVehicleSalesBrand;

    @ApiModelProperty(value = "修改时间")
    @JsonDeserialize(using = JsonLocalDateTimeDeserializer.class)
    @JsonSerialize(using = JsonLocalDateTimeSerializer.class)
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = JsonLocalDateTimeQueryBeginDeserializer.class)
    @JsonSerialize(using = JsonLocalDateTimeQueryBeginSerializer.class)
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "修改人")
    private String updatedBy;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "启用时间")
    @JsonDeserialize(using = JsonLocalDateTimeQueryBeginDeserializer.class)
    @JsonSerialize(using = JsonLocalDateTimeQueryBeginSerializer.class)
    private LocalDateTime startDate;

    @ApiModelProperty(value = "启用标识")
    private Integer startType;

    @ApiModelProperty(value = "共平台车标识")
    private Integer commonPlatformFlag;

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public Long getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(Long seriesId) {
        this.seriesId = seriesId;
    }

    public String getModelCode() {
        return modelCode;
    }

    public void setModelCode(String modelCode) {
        this.modelCode = modelCode;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public Integer getDataSources() {
        return dataSources;
    }

    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Integer getIsVehicleSalesBrand() {
        return isVehicleSalesBrand;
    }

    public void setIsVehicleSalesBrand(Integer isVehicleSalesBrand) {
        this.isVehicleSalesBrand = isVehicleSalesBrand;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public LocalDateTime getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDateTime startDate) {
        this.startDate = startDate;
    }

    public Integer getStartType() {
        return startType;
    }

    public void setStartType(Integer startType) {
        this.startType = startType;
    }

    public Integer getCommonPlatformFlag() {
        return commonPlatformFlag;
    }

    public void setCommonPlatformFlag(Integer commonPlatformFlag) {
        this.commonPlatformFlag = commonPlatformFlag;
    }

    @Override
    public String toString() {
        return "ModelQueryDTO{" +
                "brandId=" + brandId +
                ", seriesId=" + seriesId +
                ", modelCode='" + modelCode + '\'' +
                ", modelName='" + modelName + '\'' +
                ", dataSources=" + dataSources +
                ", isValid=" + isValid +
                ", isVehicleSalesBrand=" + isVehicleSalesBrand +
                ", startType=" + startType +
                ", startDate=" + startDate +
                ", updatedBy=" + updatedBy +
                ", createdBy=" + createdBy +
                ", updatedAt=" + updatedAt +
                ", createdAt=" + createdAt +
                ", commonPlatformFlag=" + commonPlatformFlag +
                '}';
    }
}
